home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / clockwrk.zip / CWK41.DOC < prev   
Text File  |  1991-05-03  |  18KB  |  321 lines

  1.              >>CLOCKWORK<< ver. 4.1, May 1991
  2.  
  3. Automatically maintains super accurate system clock without modem 
  4. and long distance calls or any other costly harware.
  5.  
  6. Copyright (c) 1991 by Pavel Otavsky
  7. 26 Barberry Hill, Woodstock, Vermont 05091-1269
  8.  
  9. CLOCKWORK consists of two files: CWK41.DOC and CWK.EXE.
  10.  
  11.                          MAIN FEATURES
  12. 1. Clock accuracy measurement and automatic adjustment during 
  13.    startup or as required.
  14. 2. Clock adjustment by entering the difference between the exact 
  15.    time and the system clock.
  16. 3. Switch between Daylight Saving, Standard, Universal and Local 
  17.    Meridian Time.
  18. 4. Change of time zone if crossing zone lines or change of date 
  19.    if crossing the date line.
  20. 5. Calendar display with Julian day number, day of the week for 
  21.    any date.
  22. 6. Days between dates calculator.
  23. 7. Menu selection and and question-answer system for entering 
  24.    setup information, display control, clock adjustment, 
  25.    utilities and system mode.
  26. 8. No interference with any system activity. It is not a memory
  27.    resident program, is easy to install and handle. 
  28.  
  29.                  VERSION 4.1 VS. OLDER VERSIONS
  30.         Version 4.1 is provided for the first time with a menu 
  31. system and more than twice as many features as v. 3.3. Some of 
  32. the new ones are: Universal time, Local Meridian time, 4 modes 
  33. for the system clock, mode switching, automatic clock adjustment 
  34. from main program on both types of systems, setup for time zone 
  35. and local meridian and storing of commands for retreiving of time 
  36. on type 1 systems, travel functions (time zone change, etc.). 
  37. After automatic adjustment the announcement includes the amount 
  38. of adjustment. 
  39.         Version 4.0 had a toggle between Daylight and Standard 
  40. Time, days between dates calculator, allowed automatic adjustment 
  41. from main screen (type 2 only) and the amount of adjustment could 
  42. be entered in any unit of time. A new algorithm was used that 
  43. handles correctly large differences between the add-on battery 
  44. and system clock (type 1). Version 4.0 has to use a new data file 
  45. (default names CWK1DATA.DAT and CWK2DATA.DAT) to store 
  46. information about the clock and therefore became non-compatible 
  47. with 3.3 or earlier. 
  48.         An option of inspecting the data file was added in 3.3. 
  49. CWK1.EXE and CWK2.EXE were combined into one, CWK.EXE with 
  50. command line selection between type 1 and type 2 system. An 
  51. option was created then to place the data file anywhere in the 
  52. system and name it other than default names. The program 
  53. automatically creates the data file when used the first time.
  54.         The Automatic Clock Adjustment version 1.0  consisted of 
  55. seven files and the installation was much more complicated.
  56.  
  57.                      UPGRADE TO VERSION 4.1
  58.         If you want to keep the old adjustment factor, TYPE or 
  59. PRINT the old data file (CLOCDAT?.DAT) and note the integer part 
  60. of the third number in the file. (Or view the data file from the 
  61. program if you have a later version.) Copy the new CWK.EXE from 
  62. the distribution disk to the CLOCWORK subdirectory. You may keep 
  63. the existing setup. Run AUTOEXEC or reboot, change to CLOCWORK 
  64. directory, start the program (CWK 1 or CWK 2), change Mode to 
  65. Daylight if applicable, adjust the clock, start a new clock 
  66. measurement cycle and fill in the original adjustment factor. A 
  67. new data file will be created with the new default name. However 
  68. version 4.1 permits a simplified setup as described below.
  69.  
  70.                           INTRODUCTION
  71.         Every clock's speed is different from standard. If the 
  72. clock speed is known and remains constant, it is possible to 
  73. adjust it at any time and maintain a very high degree of 
  74. accuracy. The clock speed can be determined quite accurately if 
  75. the measurement is averaged over a long time. In the relatively 
  76. mild environment of a home or office computer, the clock speed 
  77. fluctuations are small. Therefore it is possible to apply 
  78. corrections at convenient times and achieve average accuracy much 
  79. better than that of clocks normally offered on computer systems. 
  80. The CLOCKWORK utility uses this principle to correct the system 
  81. clock. It does it automatically at startup if invoked by the 
  82. AUTOEXEC.BAT or at any other time if run manually or called by 
  83. some other program that might be run regularly.
  84.  
  85.                         SUGGESTED SETUP
  86.         There are two types of system clocks commonly used: one 
  87. is an add-on (on an I/O board, or memory board) usually on a 
  88. PC/XT or compatible, the other is integral, usually on a PC/AT or 
  89. compatible. The  first type clock requires a software utility to 
  90. set (e.g. SETCLOCK.COM) and to retrieve in order to provide time 
  91. and date for the system when starting up (e.g. GETCLOCK.COM). The 
  92. second type is simply set and retrieved by the DOS commands 
  93. directly and does not require any special action when booting up.
  94.         In order to test for the type of clock on a given system, 
  95. change the DATE using the DOS routine. Reboot the system and note 
  96. whether the date change was permanent. If the change is not 
  97. permanent, the system is type 1. If the change is permanent, it 
  98. is system type 2. 
  99.         To install CLOCKWORK, copy CWK.EXE to a utility 
  100. subdirectory (e.g. CLOCWORK ). That is where you may already have 
  101. the clock setting and retrieving programs used on type 1 system. 
  102. Then edit the AUTOEXEC.BAT file so that it contains this line for 
  103. system type 1 (PC/XT or compatibles):
  104. ...
  105. \clocwork\cwk 1a \clocwork\cwk1data.dat    
  106. ...   
  107.         Then run the program "cwk 1" and select menu Setup and 
  108. then C. This allows entering the command used to retrieve the 
  109. battery clock. (It may be "GETCLOCK" "QUADCLOC" or something like 
  110. it.) Enter the command, including the PATH, e.g. 
  111. \clocwork\getclock . While editing the AUTOEXEC.BAT you can also 
  112. delete the clock retrieving command. It is stored in the 
  113. CWK1DATA.DAT and will be used by CLOCKWORK.
  114.         For system type 2 (PC/AT or compatibles):
  115. ...
  116. \clocwork\cwk 2a \clocwork\cwk2data.dat
  117. ...
  118. That completes the setup.
  119.         Note that no special command for retrieving the clock is 
  120. used on type 2 systems. "\clocwork\cwk " calls the program 
  121. regardless of what the current directory is. "1a " or "2a " 
  122. defines that it is system 1 or 2 and the automatic adjustment is 
  123. desired. "\clocwork\cwk1data.dat" is the path and name of the 
  124. auxiliary data file. If a different name is used here, you have 
  125. to use it every time in starting the program. cwk1data.dat or 
  126. cwk2data.dat are the defaults.
  127.         If the AUTOEXEC.BAT is run after the installation, a 
  128. message says that the clock has been adjusted. However, until the 
  129. clock adjustment factor has been measured, the adjustment amount 
  130. remains zero. The program always looks for the auxiliary data 
  131. file and creates it in the DOS current directory if it does not 
  132. exist. It is important to change to the CLOCWORK directory, 
  133. because the data file would be created again if started from a 
  134. different DOS current directory, unless the data file naming 
  135. option is used as shown above.
  136.                     
  137.                       COMMAND LINE FORMAT
  138.         The command line format for CLOCKWORK is as follows:
  139. CWK {1|1a|2|2a} [filespec]
  140. {|} One of the first four arguments must be always used. CWK 1 
  141.     will start the programfor type 1 systems. CWK 1a will perform 
  142.     the automatic clock adjustment, changing the system clock by 
  143.     an amount calculated from data stored previously. CWK 2 will 
  144.     start the program for system type 2 and CWK 2A will perform 
  145.     the automatic adjustment on type 2 systems.
  146. [ ] The optional filespec can be drive, path and file name (e.g. 
  147.     a:\clockdir\clocdata.dat), or only path and file name or only 
  148.     file name. This option permits placing the data file 
  149.     independently of the program. If no filespec is given, the 
  150.     default is CWK1DATA.DAT or CWK2DATA.DAT, respectively, placed 
  151.     in the current directory. If this option is required, care 
  152.     and consistency in subsequent use is essential. 
  153.  
  154.                    CLOCK ACCURACY MEASUREMENT
  155.         To measure the clock accuracy it is necessary to use 
  156. CWK.EXE to compare the system clock to a standard and adjust the 
  157. system clock at least twice, the best with an interval of several 
  158. days. The first time will be the beginning of the measurement 
  159. cycle, the second time will be when the clock adjustment factor 
  160. is calculated.
  161.         When the program is running, the command line is echoed 
  162. at the top of the display box, with the indication of system time 
  163. mode (Standard, Daylight, Universal or Local - selectable under 
  164. Mode menu heading). 
  165.         The offset between the system time and adjusted display 
  166. is initially zero, and can be entered in different units after 
  167. hitting the E key. Direction keys are enabled to select 
  168. increments and accumulate them. Also any of the other time modes 
  169. can be selected and the display will run with the appropriate 
  170. offset. 
  171.         The display can be frozen by using SPACE or F and 
  172. restarted by hitting any key. This provides high accuracy in 
  173. comparing the display to a time signal.
  174.         Change to Clock menu and use the F1 function to adjust 
  175. the system clock. The program beeps after adjusting the system 
  176. clock. F1 makes the adjustment count as a clock correction, F4 as 
  177. a sort of time zone change. F4 change has no effect on adjustment 
  178. factor calculation. Dates outside the legal DOS range cannot be 
  179. accepted by either F1 or F4. The program accumulates repeated 
  180. adjustments. 
  181.         When the system clock is correctly adjusted, you can 
  182. start measuring its accuracy: F5 is used to indicate the start of 
  183. measurement cycle. Since the clock accuracy can be measured with 
  184. adjustments in effect, there is a provision for a manual input of 
  185. adjustment factor.  Now you can select the Quit menu and exit the 
  186. program.
  187.         Some time later (days) adjust the display again according 
  188. to your reliable time signal, adjust the system with F1 and then 
  189. use F8. It is the complement to F5. It is used to complete the 
  190. measurement cycle after F1 was used to accept display as clock 
  191. adjustment. The adjustment factor is calculated and subsequently 
  192. the CWK 1A or CWK 2A will perform an automatic clock adjustment 
  193. using the latest value of adjustment factor.
  194.         The clock adjustment and accuracy measurement (display 
  195. adjustment, F1 and F8) can be repeated at a later date which will 
  196. improve the accuracy of the adjustment factor by averaging over a 
  197. greater length of time. The program does not allow the use of F8 
  198. before F5 and displays a warning.
  199.  
  200.                  OTHER UTILITIES AND FUNCTIONS
  201.         Under the Utilities menu are these functions:
  202.         The A key performs automatic system clock adjustment on 
  203. demand. This can be used if you want to compare the clock to a 
  204. time signal after the computer has been on for a long period of 
  205. time and its clock drifted by an appreciable amount. 
  206.         The <D> key selects an easy to use days between dates 
  207. calculator. The entries in this calculator must be as shown, 
  208. either a three field date, or a one field number. Months must be 
  209. from 1 to 12, days from 1 to 31. Extra days added by mistake to 
  210. shorter months are regarded as days of the following month.
  211.         The <T> key provides for adjustments of all data in case 
  212. of time zone change and also provides handling of the date line. 
  213.         <V> key shows contents of the data file translated into a 
  214. meaningful format, each item provided with a description. At the 
  215. bottom of the screen are the raw numbers and on the last line are 
  216. the present mode (-1 for standard, 0 for daylight, 2 for 
  217. universal and 6 for local meridian), time zone, longitude and the 
  218. command for retrieving the battery clock (type 1 only).
  219.         The Mode heading includes four selections: Standard 
  220. (winter) and Daylight (summer) are obvious. Standard is the 
  221. initial mode. While comparing to a time signal, use the 
  222. appropriate mode. Universal is identical to Standard until time zone is 
  223. entered under the menu heading Setup. Universal Time Coordinated 
  224. (UTC) formerly called Greenwich Mean Time, is the time for time 
  225. zone centered on the Greenwich meridian. Local Meridian is 
  226. identical to Universal until geographic longitude of interest is 
  227. entered in Setup. This option shows the time reference for use in 
  228. astronomy. Rise, transit and set of celestial bodies happen on 
  229. Local Meridian Time. These phenomena happen "on time" only in the 
  230. middle of time zones and when standard time is in use.
  231.         The Setup and Clock menu functions have already been 
  232. described in connection with other functions.
  233.  
  234.                          GENERAL NOTES
  235.         Once you start using this utility, do not set the clock 
  236. by using the DOS comands TIME and DATE or any other utility or 
  237. shell programs, since those adjustments would not be accounted 
  238. for. Also, for the same reason, do not adjust the battery clock 
  239. by the clock setting utility on type 1 systems. No matter how far 
  240. off the battery clock is, CLOCKWORK will adjust the system clock 
  241. correctly. 
  242.         The adjustment factor (AF) is a number of seconds after 
  243. which one second correction is required. AF=7000 means that after 
  244. 7000 seconds one second must be added. AF=-15000 means that after 
  245. 15000 seconds one second must be subtracted. 
  246.         There are no special system requirements and the program 
  247. works on any computer under the MS DOS or PC DOS operating 
  248. system. It cannot interfere with any other programs because it is 
  249. run only during system startup and when you want to initiate the 
  250. clock accuracy measurement or improve the adjustment factor.
  251.         If the system is on for many hours or days and it is only 
  252. the startup routine that invokes the adjustment, there will be no 
  253. automatic clock adjustment.
  254.         The program can be installed on a system with or without 
  255. a hard disk. Both files needed by CLOCKWORK can be placed on the 
  256. startup diskette and used as described.
  257.         It is possible to skip the invocations by AUTOEXEC.BAT 
  258. and use the program manually by typing CWK 1A or CWK 2A, while 
  259. the appropriate data files are accessible, or give the name of 
  260. the data file on the command line (like the description under 
  261. suggested setup) or use A option under Utilities.
  262.         The accuracy of the adjustment factor improves every time 
  263. the option F8 is used, since long term averaging takes place.
  264.         For best results use the option F5 only once but make 
  265. sure that the adjustment is really close to your reference. The  
  266. adjustment that is done just before using option F8 is less 
  267. critical because a small error in adjustment can be corrected 
  268. when repeating F8 and the averaging process will help more with 
  269. time.
  270.         The PC system clock was designed to give 18.2 ticks per 
  271. second. This clock granularity becomes clearly visible by running
  272. a trivial BASIC program that prints TIMER$ repeatedly. The effect 
  273. of this is that setting the clock can be also done with limited 
  274. accuracy. This however does not affect significantly manual 
  275. inputs of corrections and long term averaging.
  276.         Following are some of the means for obtaining a time 
  277. signal. Short-wave radio WWV on 2.5, 5, 10, 15, 20 MHz or CHU on 
  278. 3.33, 7.335, 14.67 MHz. Many short wave radio stations give time 
  279. signal on the hour (e.g. BBC World Service). WWV can be also 
  280. heard by telephone (303) 499-7111. The U.S. Naval Observatory, 
  281. Washington, D.C. time signal number is (202) 653-1800, or (900) 
  282. 410-8463. Many areas have local telephone numbers that give exact 
  283. time, but the accuracy may not be always guaranteed. Many AM and 
  284. FM radio stations and TV stations come on air with extreme 
  285. accuracy and could be used as a time signal of sorts. Some of them 
  286. even give exact time explicitely.
  287.         There is one area where user feedback would be especially 
  288. welcome: I have encountered problems with the Real Time system 
  289. clocks on a few AT compatibles. Every time the machine is 
  290. rebooted, the clock looses somewhere between 1 and 3 seconds. It 
  291. is unpredictable and annoying. If you are running something that 
  292. occasionally locks up the machine and have to reboot, you lost 
  293. time in more than one sense of the word. (CLOCKWORK takes care of the 
  294. problem on average if you start the computer regularly. If you 
  295. leave the machine on all the time the problem is completely
  296. eliminated, except if software or user action locks it up.) I 
  297. would like to find out if other users notice it and on what brand 
  298. system and with which brand of BIOS. Existence of the problem can 
  299. be confirmed easily without CLOCKWORK by using $t in the DOS 
  300. prompt and any wrist watch.
  301.  
  302.                            FINAL NOTE
  303.         This program is in the shareware domain, that means you 
  304. are encouraged to copy it for yourself, let anybody else copy or 
  305. pass on via bulletin boards, etc. Please keep both files together 
  306. for distribution.
  307.         If you decide to use this program on your system I would 
  308. like you to send me a user/registration fee of $15.- at the above 
  309. address. I will send you information about any new and improved 
  310. versions.
  311.         If either file is missing (CWK40.DOC or CWK.EXE) please 
  312. send $15.- plus $5.- for postage and handling. You will receive a 
  313. complete set of the latest version on a 360k diskette. The 
  314. upgrade cost for registered users is $15.- + $5.- P/H from 
  315. version 1.0, $5.- + $5.- P/H from version 2.0 and above. Postage 
  316. and handling is not applicable if you send a 360k DOS formatted 
  317. diskette and a self addressed stamped (75 cents) mailer.
  318.         If there is any feedback you might have about your 
  319. experience with this program or any suggestions, they are quite 
  320. welcome. 
  321.